import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;

public class CsvMakeTes {
	static String PATH_INPUT = "../tes";
	static String PATH_WEKA = PATH_INPUT + ".csv";
	static String[][] data;
	static int ROWS = 1000990;

	public static void main(String[] args) throws Exception {
		join();
	}

	private static void join() throws Exception {
		File folder = new File(PATH_INPUT);
		File[] listOfFiles = folder.listFiles();
		BufferedReader[] bra = new BufferedReader[listOfFiles.length];

		for (int c = 0; c < listOfFiles.length; c++) {
			bra[c] = new BufferedReader(new FileReader(listOfFiles[c]));
		}

		for (int c = 0; c < listOfFiles.length; c++) {
			System.out.println(bra[0].readLine() + "," + bra[1].readLine());
		}
	}
}
